import request from '@/router/axios';

export const getList = (current, size, params) => {
    return request({
        url: '/api/mes-product/rma/entry/page',
        method: 'get',
        params: {
            ...params,
            current,
            size
        }
    });
};


export const getDetail = (params) => {
    return request({
        url: '/api/mes-product/rma/entry/result/detail',
        method: 'get',
        params: params
    });
};

export const getDetailList = (params) => {
    return request({
        url: '/api/mes-product/rmaproduct/maintain/detail',
        method: 'get',
        params: params
    });
};


export const ramHandle = (data) => {
    return request({
        url: `/api/mes-product/rma/entry/result/rma-handle`,
        method: 'post',
        data
    });
};

export const remove = (ids) => {
    return request({
        url: '/api/mes-product/rma/entry/remove',
        method: 'post',
        params: {
            ids
        }
    });
};






